export default function authHeader() {
    const user = JSON.parse(sessionStorage.getItem('user'));
    const company = JSON.parse(sessionStorage.getItem('company'));
  
    if (user && user.accessToken) {
      return { Authorization: 'Bearer ' + user.accessToken };
    } 
    else if (company && company.accessToken) {
      return { Authorization: 'Bearer ' + company.accessToken };
    } 
    else {
      return {};
    }
  }